logoBrett Rawlins

#command line

4 Posts

Delete files older than N days on Linux

Today I needed to delete a bunch of old log files to clear up some room on our server. Here’s a handy shortcut that I found to delete any…

Git branch workflow

I have three environments: local (development) test production Usually you want to try out a new feature and then test it out on the server…

Import a database from the command line

Sometimes you need to import a large database that exceeds the size limits imposed by phpMyAdmin. You can change some settings in your php…

MySQL SSH tunnel

If your MySQL server is configured to only accept local connections, then you can't connect remotely by just specifying the hostname in your…